public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
        System.out.println("子类构造方法");
    }
    static {
        System.out.println("子类静态代码块");
    }

    {
        System.out.println("子类普通代码块");
    }

}
